package com.xoa.dao.hr.learningExperience;

import com.xoa.model.hr.HrStaffContract;
import com.xoa.model.hr.learningExperience.LearningExperience;
import com.xoa.model.hr.learningExperience.LearningExperienceExample;
import com.xoa.model.hr.learningExperience.LearningExperienceResult;
import com.xoa.model.hr.learningExperience.LearningExperienceWithBLOBs;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface LearningExperienceMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int countByExample(LearningExperienceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int deleteByExample(LearningExperienceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int insert(LearningExperienceWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int insertSelective(LearningExperienceWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    List<LearningExperienceWithBLOBs> selectByExampleWithBLOBs(LearningExperienceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    List<LearningExperience> selectByExample(LearningExperienceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    LearningExperienceWithBLOBs selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") LearningExperienceWithBLOBs record, @Param("example") LearningExperienceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int updateByExampleWithBLOBs(@Param("record") LearningExperienceWithBLOBs record, @Param("example") LearningExperienceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") LearningExperience record, @Param("example") LearningExperienceExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(LearningExperienceWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int updateByPrimaryKeyWithBLOBs(LearningExperienceWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table learning_experience
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(LearningExperience record);
    int deleteLearningExperienceByids(Integer[] ids);
    List<LearningExperienceResult> getLearningExperienceList(Map<String,Object> map);

    /**
     * 查询当前登录用户信息
     * @param userId
     * @return
     */
    List<LearningExperienceWithBLOBs> getHrStaffContractList(String userId);

    /**
     * 创建者：qizhongxiao
     * 方法作用：查询学习经历的数量信息
     * @param map
     * @return
     */
    List<LearningExperience> selectNumByCon(Map<String,Object> map);

    /**
     * 李阳
     * 2018.8.6
     * 根据staffName 查找学习经历
     * @param
     * @return
     */
    List<LearningExperienceWithBLOBs> getByStaffName(HashMap<String, Object> map);
    int getByStaffNameCount(String staffName);
}